package metrics_sql

const (
	ApplicationKubernetesTcpOpenTotal = `
organize = "gluenets"
platform = "kubernetes"
object = "application"
guid = "%v"
start = %v
end = %v
from(bucket: "data")
  |> range(start: start, stop: end)
  |> filter(fn: (r) => r["_measurement"] == "prometheus_remote_write")
  |> filter(fn: (r) => r["_field"] == "metrics")
  |> filter(fn: (r) => r["name"] == "tcp_open_total")
  |> filter(fn: (r) => r["namespace"] == guid)
  |> last()
`
)
